package com.finger.gulimall.auth.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class RegistVo {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Length(max = 16,message = "密码长度最长为16位")
    private String password;
    @Length(max = 11,min = 11,message = "手机格式错误")
    @NotBlank(message = "手机不能为空")
    private String phone;
}
